package com.ktg.web.mainData;

import com.ktg.ktgcommon.domain.ProProcess;
import com.ktg.ktgcommon.result.R;
import com.ktg.service.ProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api")
public class ProcessController {

    @Autowired
    private ProcessService processService;

    //查询process的全部信息
    @PostMapping("/process/processCheckAll")
    public R processCheckAll(){
        List<ProProcess> list = processService.checkAll();
        return R.OK(list);
    }
}
